/* FILE : server.h */
#ifndef _SERVER_H
#define _SERVER_H

extern int temp_sock_descriptor;

typedef void (*ServerReceiveHandler)(void *, size_t);

int server_start(void);
void server_stop(void);
int server_restart(void);
void server_send(void *buf, size_t buf_size);
void server_set_receive_handler(ServerReceiveHandler handler);
void server_set_listen_port(int port);
void server_unset_listen_port(int port);

#endif
